package com.gopay.scheduler.job;

import javax.annotation.Resource;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import com.gopay.remote.cps.autosettle.AutoSettleBankService;
import com.gopay.scheduler.GopayBaseJob;

public class QueryBankCardBalanceAmtJob extends GopayBaseJob {
	
	private Logger logger = LoggerFactory.getLogger(QueryBankCardBalanceAmtJob.class);
	
	@Resource(name = "autoSettleBankRemoteService")
    private AutoSettleBankService autoSettleBankService;
	@Override
	protected void doJobInternal() {
		// TODO Auto-generated method stub
		logger.info("---查询银行备付金账户开始");
		long startTime = System.currentTimeMillis(); 
		autoSettleBankService.queryBanksCardBalanceAmt();
		long endTime = System.currentTimeMillis();
		logger.info("---查询银行备付金账户结束,用时："+(endTime - startTime) + "ms");
	}

}
